<?php
class ManagementController extends AppController{
	function index(){
		$this->set('title_for_content', 'Screen Managent');
		$this->set('active_main_menu_id', 1);
		$this->set('active_sub_menu_id', 0);
	}
	// add man hinh test
	function add_screen(){
		
	}
	
	// edit man hinh test
	function edit_screen($id = null){
		$this->layout = 'ajax';
		$idScreen = $id;
		if (!$idScreen){
			throw new NotFoundException(__('Invalid Screen'));
		}
		$this->set(compact('idScreen'));
		
	}
	// add vung cho man hinh test
	function add_area(){
		$this->set('title_for_content', 'Screen Name');
		$this->set('active_main_menu_id', 1);
		$this->set('active_sub_menu_id', 0);
	}
	// add moi items cho vung 
	function items ($id = null){
		$this->layout = 'ajax';
		$idItem = $id;
		if (!$idItem){
			throw new NotFoundException(__('Invalid Items'));
		}
		$this->set(compact('idItem')); 
	}
	
}